package com.roncoo.education.course.service.dao.impl.mapper;

import com.roncoo.education.course.feign.vo.TagVo;
import com.roncoo.education.course.feign.vo.UserTagNameVO;
import com.roncoo.education.course.service.dao.impl.mapper.entity.AdvExample;
import com.roncoo.education.course.service.dao.impl.mapper.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface TagMapper {
    int countByExample(AdvExample example);

    int deleteByExample(AdvExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Tag record);

    int insertSelective(Tag record);

    int updateByExampleSelective(@Param("record") Tag record, @Param("example") AdvExample example);

    int updateByExample(@Param("record") Tag record, @Param("example") AdvExample example);

    int updateByPrimaryKeySelective(Tag record);

    int updateByPrimaryKey(Tag record);

    Tag selectByPrimaryKey(Long id);
    
    List<TagVo> findByTag();

    ArrayList<UserTagNameVO> getUserTagName(List<Long> tagId);

}
